class NewsModel {
  var errcode;
  var errmsg;
  List<NewsListModel>? data;
  var message;

  NewsModel({this.errcode, this.errmsg, this.data, this.message});

  NewsModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    if (json['data'] != null) {
      data = <NewsListModel>[];
      json['data'].forEach((v) {
        data!.add(new NewsListModel.fromJson(v));
      });
    }
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    return data;
  }
}

class NewsListModel {
  var id;
  var title;
  var sTitle;
  var naviContentTf;
  var comments;
  var createDate;
  var dateBeauty;
  var author;
  var images;

  var header_img;
  var images1;
  var images2;
  var images3;
  var vurl;
  var categName;
  var content;
  var souce;
  List? cover_images;
  bool? newspropertyRectf1;
  bool? newspropertyMartf1;
  bool? newspropertyHottf1;
  bool? newspropertyFiltf1;
  bool? newspropertyTttf1;
  bool? newspropertyCarefully;
  bool? isPlacement;
  bool? newspropertyAnntf1;
  bool? newspropertyJctf1;
  var appStyle;

  NewsListModel(
      {this.id,
        this.title,
        this.sTitle,
        this.naviContentTf,
        this.comments,
        this.createDate,
        this.dateBeauty,
        this.images,
        this.header_img,
        this.images1,
        this.images2,
        this.images3,
        this.vurl,
        this.categName,
        this.author,
        this.content,
        this.souce,
        this.newspropertyRectf1,
        this.newspropertyMartf1,
        this.newspropertyHottf1,
        this.newspropertyFiltf1,
        this.newspropertyTttf1,
        this.newspropertyCarefully,
        this.isPlacement,
        this.newspropertyAnntf1,
        this.newspropertyJctf1,
        this.cover_images,
        this.appStyle});

  NewsListModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    sTitle = json['s_title'];
    naviContentTf = json['naviContentTf'];
    comments = json['comments'];
    createDate = json['create_date'];
    dateBeauty = json['date_beauty'];
    author = json['author'];
    images = json['images'];
    header_img = json['header_img'];
    images1 = json['images1'];
    images2 = json['images2'];
    images3 = json['images3'];
    vurl = json['vurl'];
    categName = json['categ_name'];
    content = json['content'];
    souce = json['souce'];
    newspropertyRectf1 = json['newsproperty_rectf1'];
    newspropertyMartf1 = json['newsproperty_martf1'];
    newspropertyHottf1 = json['newsproperty_hottf1'];
    newspropertyFiltf1 = json['newsproperty_filtf1'];
    newspropertyTttf1 = json['newsproperty_tttf1'];
    newspropertyCarefully = json['newsproperty_carefully'];
    isPlacement = json['is_placement'];
    newspropertyAnntf1 = json['newsproperty_anntf1'];
    newspropertyJctf1 = json['newsproperty_jctf1'];
    cover_images = json['cover_images'];
    appStyle = json['app_style'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['s_title'] = this.sTitle;
    data['naviContentTf'] = this.naviContentTf;
    data['comments'] = this.comments;
    data['create_date'] = this.createDate;
    data['date_beauty'] = this.dateBeauty;
    data['images'] = this.images;
    data['images1'] = this.images1;
    data['images2'] = this.images2;
    data['images3'] = this.images3;
    data['vurl'] = this.vurl;
    data['categ_name'] = this.categName;
    data['content'] = this.content;
    data['newsproperty_rectf1'] = this.newspropertyRectf1;
    data['newsproperty_martf1'] = this.newspropertyMartf1;
    data['newsproperty_hottf1'] = this.newspropertyHottf1;
    data['newsproperty_filtf1'] = this.newspropertyFiltf1;
    data['newsproperty_tttf1'] = this.newspropertyTttf1;
    data['newsproperty_carefully'] = this.newspropertyCarefully;
    data['is_placement'] = this.isPlacement;
    data['newsproperty_anntf1'] = this.newspropertyAnntf1;
    data['newsproperty_jctf1'] = this.newspropertyJctf1;
    data['app_style'] = this.appStyle;
    return data;
  }
}
